package com.xiaobao.campusLostFoundAfter.mapper;

import com.xiaobao.campusLostFoundAfter.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/*评论的Mapper*/
@Mapper
public interface CommentMapper {
    //添加评论
    int addComment(Comment comment);
    //获取评论
    List<Comment> getComments(Integer itemId, Integer type);
    //删除评论
    int deleteComment(Integer id);
}
